Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the issue of the main page getting stuck due to the long execution time required for updates #17626

Merged
merged 5 commits into from
Sep 13, 2024

Conversation

qiuguohua
Copy link
Contributor

@qiuguohua qiuguohua commented Sep 11, 2024

Re: #

Changelog

#17544


Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

Copy link

Interface Check Report

This pull request does not change any public interfaces !

@qiuguohua qiuguohua closed this Sep 12, 2024
@qiuguohua qiuguohua reopened this Sep 12, 2024
@@ -58,6 +58,7 @@ class CC_EX_DLL AssetsManagerEx : public RefCounted {
DOWNLOADING_MANIFEST,
MANIFEST_LOADED,
NEED_UPDATE,
PARPER_UPDATING,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this event mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indicates that the prepare update function is being processed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is PARPER a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, fiexed.


void AssetsManagerEx::prepareUpdateAsync(const PrepareUpdateFinishedCallback &cb) {
// Avoiding multiple function calls.
if (_updateState != State::NEED_UPDATE || _updateState == State::PARPER_UPDATING) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to print a warning log.

@minggo minggo merged commit c679595 into cocos:v3.8.5 Sep 13, 2024
25 checks passed
zhitaocai pushed a commit to zhitaocai/cocos-engine that referenced this pull request Oct 18, 2024
…ion time required for updates (cocos#17626)

* Fixed the issue of the main page getting stuck due to the long execution time required for updates

---------

Co-authored-by: qgh <>
AILHC pushed a commit to AILHC/cocos-engine that referenced this pull request Oct 19, 2024
…ion time required for updates (cocos#17626)

* Fixed the issue of the main page getting stuck due to the long execution time required for updates

---------

Co-authored-by: qgh <>
(cherry picked from commit c679595)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants